package com.toommi.refuse.mapper;

import com.toommi.refuse.entity.WechatUser;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Map;

public interface WechatUserMapper extends Mapper<WechatUser> {
    /**
     * 根据openid获取微信用户的信息
     * @param openid
     * @return
     */
    Map<String, Object> getUserInfo(String openid);

    void updateWeiXinUser(Map<String,Object>par);

    void updateWsWeiXinUser(String openid, String cityname, String xxname, String xxid, String jdname, String jdid, String xqname, String xqid, String dh, String mph);

    Object getUserQrcode(String openid);

    Integer judgeQrcode(String code);

    Map<String, Object> getUserInfoByCode(String code);

    Map<String, Object> getUserInfoByOpenId(String openid);

    Map<String, Object> getUserBuildInfo(String wechatUserId);

    Integer checkPhone(String phone);

    void register(String phone, String password, String id,String name);

    Map<String, Object> login(String phone, String password);
}